package com.cloudbroker.bcs.csvc.sms.apiexport.t2;

import java.util.Map;

import javax.annotation.Resource;

import com.cloudbroker.bcs.common.jres.service.T2ServiceAPIAdapterBase;
import org.springframework.stereotype.Service;

import com.cloudbroker.bcs.csvc.sms.api.service.SMSService;
import com.cloudbroker.bcs.csvc.sms.api.t2service.SMST2Service;

@Service
public class SMSServiceT2 extends T2ServiceAPIAdapterBase<SMSService> implements SMST2Service {
    
    @Resource
    private SMSService smsService;
    
    @Override
    public Map<String, Object> sendSingle(Map<String, Object> param) {
        return callAPI("sendSingle", param);
    }
    
    @Override
    public Map<String, Object> sendBatch(Map<String, Object> param) {
        return callAPI("sendBatch", param);
    }

    @Override
    public Map<String, Object> sendMail(Map<String, Object> param) {
        return callAPI("sendMail", param);
    }

    @Override
    protected SMSService getTargetService() {
        return smsService;
    }
    
}
